package regex_all;

import java.util.regex.Pattern;

public final class Regex_str_pattern {
    public static String daan="答案[：:.]";
    public static Pattern daan_pattern=get_Pattern(daan);

    public static String daan_with_content="答案[：:.].*";
    public static Pattern daan_with_content_pattern=get_Pattern(daan_with_content);

    public static String jiexi="解析[：:.]";
    public static Pattern jiexi_pattern=get_Pattern(jiexi);

    public static String jiexi_with_content="解析[：:.].*";
    public static Pattern jiexi_with_content_pattern=get_Pattern(jiexi_with_content);

    // public static String zheng_regx="[（(]正确[）)].*$";
    public static String zheng_regx="[（(](?:(正确)|对)[）).。]+$";
    public static String cuo_regx="[（(](?:(错误)|错)[）).。]+$";

    public static Pattern zheng_pattern=get_Pattern(zheng_regx);
    public static Pattern cuo_pattern=get_Pattern(cuo_regx);

    public static String reg="[A-Z]\\s?\\.[^A-Z\r\n]*";
    public static Pattern xuanxiang_pattern=get_Pattern(reg);

    public static String xuan_dot="[A-Z]\\s?\\.\\s?";
    public static Pattern xuan_dot_pattern=get_Pattern(xuan_dot);


    public static String biaoti="^[一二三四五六七]\u3001?...";//单选，多选
    public static Pattern biaoti_pattern=get_Pattern(biaoti);

    public static String ti_reg="^\\d+\\.\\x20?";// 1. 2. 3. 
    public static Pattern ti_pattern=get_Pattern(ti_reg);

    public static String null_reg="null";//单选，多选
    public static Pattern null_pattern=get_Pattern(null_reg);

    public static String kuohao="[(（]+ +[)）]+";
    public static Pattern kuohao_pattern=get_Pattern(kuohao);

    private static Pattern get_Pattern(String reg2) {
        return Pattern.compile(reg2);
    }
}
